import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../components/chatEmpty/chatEmpty.vue')
  }, {
    path: '/initialization',
    name: 'Initialization',
    component: () => import('../components/initializationChat/index.vue')
  },
  {
    path: '/chatBot',
    name: 'ChatBot',
    component: () => import('../views/chatBot/index.vue')
  },
  {
    path: '/collection',
    name: 'collection',
    component: () => import('../views/collection/index.vue')
  },
  {
    path: '/repository',
    name: 'repository',
    component: () => import('../views/repository/index.vue')
  },
  {
    path: '/configuration',
    name: 'configuration',
    component: () => import('../views/configuration/index.vue')
  },
  {
    path: '/settings',
    name: 'settings',
    component: () => import('../views/settings/index.vue')
  },
  {
    path: '/userInfo',
    name: 'userInfo',
    component: () => import('../views/userInfo/index.vue')
  },
  {
    path: '/fileList',
    // path: '/fileList/:knowledgeId/:folderId',
    name: 'fileList',
    component: () => import('../views/fileList/index.vue')
  },
  {
    path: '/share',
    name: 'share',
    component: () => import('../views/share/index.vue')
  },
  {
    path: '/message',
    name: 'message',
    component: () => import('../views/message/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 